<?php
// +----------------------------------------------------------------------
// | makePHP 
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://makephp.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed BSD.(http://www.make.org/BSD-license.txt)
// +----------------------------------------------------------------------
// | Author: 叁石(sanshi) <sanshi0815@tom.com>
// | Author: 白家昌<baijc2004cn@126.com>

/**
 * 功能: 后台用户入口
 * 创建日期:Tue Nov 04 16:38:32 CST 2008
 * 最后更新:
 * 作者: sanshi
 */
require_once('TheAdmin.class.php');
$admin = new TheAdmin();
$admin_id = $admin->check_login();
$className = strval(trim(isset($_GET['c']) ? $_GET['c'] :"index"));
$methodName = strval(trim(isset($_GET['m']) ? $_GET['m'] : DEFANT_METHOD));
//取得用户权限
/*
$user_popedom = $admin->get_user_popedom();
$menus_arr = $admin->get_menus();
for ($i=0;$i<count($menus_arr);$i++)
{
	if($admin->get_user_popedom_by_class_name($menus_arr[$i]['url'],$user_popedom))
		echo "<a href=?c={$menus_arr[$i]['url']}>{$menus_arr[$i]['title']}</a><br/>";
}
if(!IS_ROOT) echo "<a href=".HOST_PATH."admin/login.php?act=login_out>退出</a><br/>";
*/
//print_r($admin->get_user_menus());
$admin->user_popedom($className,$methodName,$user_popedom) or alertMsg(-1100);
unset($admin);
?>